/**
 * jims
 */
package com.jims.master.modules.emr.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

/**
 * Entity
 * @author WangYQ
 * @version 2018-08-21
 */
public class EmrIspublic extends DataEntity<EmrIspublic> {
	
	private static final long serialVersionUID = 1L;
	private String itemCode;		// 基本项名字
	private String org;		// 基本项编号
	private String ispublic;		// 是否公开：1不公开、0公开
	private EmrBaseItem emrBaseItem; //emr基本细项
	private String itemName;	//名字
	private String anotherName; //别名
	
	public EmrIspublic() {
		super();
	}

	public EmrBaseItem getEmrBaseItem() {
		return emrBaseItem;
	}

	public void setEmrBaseItem(EmrBaseItem emrBaseItem) {
		this.emrBaseItem = emrBaseItem;
	}

	public EmrIspublic(String id){
		super(id);
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getAnotherName() {
		return anotherName;
	}

	public void setAnotherName(String anotherName) {
		this.anotherName = anotherName;
	}

	@Length(min=0, max=64, message="基本项名字长度必须介于 0 和 64 之间")
	public String getItemCode() {
		return itemCode;
	}

	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	
	@Length(min=1, max=64, message="基本项编号长度必须介于 1 和 64 之间")
	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}
	
	@Length(min=1, max=1, message="是否公开：1不公开、0公开长度必须介于 1 和 1 之间")
	public String getIspublic() {
		return ispublic;
	}

	public void setIspublic(String ispublic) {
		this.ispublic = ispublic;
	}
	
}